<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
        >
<head>
    <title>User Information</title>

    <link rel="stylesheet" type="text/css" href="../css/style.css" />

    <p:resources />
</head>
<body>
<f:view>
    <p:panel header="Current User Info"  style="width:20%">
       <h:panelGrid columns="3">

              <!-- Login -->
                <h:outputLabel for="login">
                    <h:outputText value="Login: "/>
                </h:outputLabel>
                <h:outputText id="login" value="#{currentUser.user.login}"/>

              <!-- First Name -->
                <h:outputLabel for="fname">
                    <h:outputText value="First Name: "/>
                </h:outputLabel>
                <h:outputText id="fname"  value="#{currentUser.user.firstName}"/>

              <!-- Last Name -->
                <h:outputLabel for="lname">
                    <h:outputText value="Last Name: "/>
                </h:outputLabel>
                <h:outputText id="lname"  value="#{currentUser.user.lastName}"/>

              <!-- Group -->
                <h:outputLabel for="group">
                    <h:outputText value="Group: "/>
                </h:outputLabel>
                <h:outputText id="group"  value="#{currentUser.user.group.name}"/>

            </h:panelGrid>
    </p:panel>
</f:view>
</body>
</html>